package com.himalayan.bear.onlyoffice.properties;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * 配置信息
 * <p>email: ypasdf@163.com</p>
 * <p>Copyright: Copyright (c) 2018</p>
 * <P>Date: 2018/12/11 </P>
 *
 * @author leaf
 * @version 1.0
 */
@Data
@Component
@PropertySource("classpath:config.properties")
public class OnlyProperties {

/*    @Value("#{servletContext.contextPath}")
    private String ctx;*/

    /**
     * 回调地址 不包含http表示本机地址
     */
    private String callBackUrl = "/onlyOffice/save";

    /**
     * only office服务路径
     * 必须存在
     */
    @Value("${docService}")
    private String docService;

    /**
     * 临时存储位置
     */
    private String tempStorage = "reports";
}
